#ifndef _QUADRIC_H_
#define _QUADRIC_H_

#include "object.h"
#include "../my/include/Matrix.h"

class Quadric: public Object {
	double a;
	double b;
	double c;
	double d;
	double e;
	double f;
	double g;
	double h;
	double i;
	double j;
	Matrix m;
	Vertex sp;
	float r;
public:
	Quadric(double aa, double bb, double cc, double dd, double ee, double ff,
			double gg, double hh, double ii, double jj,Vertex &psp, float pr);
	bool intersect(Ray &ray, Hit *h);
};

#endif
